#include <iostream>
#include "../head/gezhongchuangkong.hpp"
#include "../head/guanqiashezhi.hpp"
#include "../head/renwuhewupin.hpp"
#include <string.h>
using namespace std;

void renwu::po_less(int v) {  //



}

void renwu::p_hurt(int v){   //



}

void renwu::h_hurt(int v){   //



}

renwu::renwu(int __id,int _power,int _pain,int _hopeless,_hid __hid,int _ATK,char _pic,coordinate * coor){ //构造函数，初始化每关的数值

position = new coordinate;//初始化坐标
char ttt[] = "没有任何物品"; 
donh = (context)malloc(sizeof(ttt))/*new char[sizeof(ttt)]*/;
if (__hid == NULL){
strcpy((*donh),ttt);
}else{//将输出拥有的物品的名称，如果没有则输出一段对话

}
power = _power;
pain = _pain;
hopelessness = _hopeless;
_id = __id;
pic = _pic;
if (coor !=NULL){
position = coor;
}else{//这里初始化为0
position->x = 0;
position->y = 0;
}
ATK = _ATK;

}

void renwu::a_id(int _id){



}

void renwu::r_id(int _id){



}

void renwu::A_Hurt(int _ATK){



}

void renwu::pr(){

cout<<_id<<endl<<power<<endl<<pain<<endl<<hopelessness<<endl<<(*donh)<<endl<<ATK<<endl<<pic<<endl<<position->x<<","<<position->y<<endl;

}

renwu::~renwu(){

free(donh);
delete position;

}